package com.bw.a2301club

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.bw.lib_common.utils.ToastUtils
import com.bw.lib_widget.verify_code.VerifyCodeItemView
import com.bw.lib_widget.verify_code.VerifyCodeView

class WidgetActivity : AppCompatActivity() {
    private lateinit var ver: VerifyCodeItemView
    private lateinit var codeView: VerifyCodeView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_widget)
//        ver = findViewById(R.id.ver)
//        ver.setNumber("4")
//        ver.setFocus(false)

        codeView = findViewById(R.id.code_view)
        codeView.setOnInputVerifyCodeCompleted {
            ToastUtils.showLong(this,it)
        }
    }
}